using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;

namespace Konst3d.Efficiency.Suite
{
    public interface IBuyCollection : IEnumerable<IBuy>, INotifyCollectionChanged
    {
		int Count
		{
			get;
		}

        IBuy this[int id]
        {
            get;
        }

        int Add(string title, string description, int severity, double price, DateTime created, DateTime deadLine);
        void Remove(int id);

        // IEnumerable<IBuy> SelectInPriceRange(double from, double to);
        // IEnumerable<IBuy> SelectTTL(TimeSpan timeToLeave);
        // IEnumerable<IBuy> SelectBySeverity(int severity, AspectType aspect); // Aspect { LessThen, GreaterThen, Equal, NotEqual, ... }
    }
}
